Skip to content

Conversation

Amisha328
Copy link

Given a weighted, directed, and connected graph of V vertices and E edges, Find the shortest distance of all the vertices from the source vertex S. If vertices can't be reached from the S then mark the distance as 10^8. Note: If the Graph contains a negative cycle then return an array consisting of only -1.

Please review and accept the PR for issue #140.

Thank you !! :)

Given a weighted, directed, and connected graph of V vertices and E edges, Find the shortest distance of all the vertices from the source vertex S. If vertices can't be reached from the S then mark the distance as 10^8. Note: If the Graph contains a negative cycle then return an array consisting of only -1.
Copy link
Owner

@codewithdev codewithdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After the changes are done, I will merge with the base.

@@ -0,0 +1,68 @@
// Distance from the Source (Bellman-Ford Algorithm)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a quick introductory sentence above this explaining what this algorithm is before jumping to the solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants